﻿using System;
using System.ServiceModel;
using XchangeStreamer.Utilities;

namespace XchangeStreamer.Core.Sender
{
    [ServiceContract(Name = "ISender", Namespace = Settings.Namespace)]
    public interface ISender
    {
        [OperationContract(IsOneWay = true, AsyncPattern = true, Name = Settings.Name, Action = Settings.Action)]
        IAsyncResult BeginSend(System.ServiceModel.Channels.Message message, AsyncCallback callback, object state);
        void EndSend(IAsyncResult result);
    }
}
